<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Libusb++: LibUSB::DeviceImpl Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Libusb++
   &#160;<span id="projectnumber">1.0</span>
   </div>
   <div id="projectbrief">A C++ libusb wrapper</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.1.2 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('class_lib_u_s_b_1_1_device_impl.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Friends</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Pages</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a> &#124;
<a href="class_lib_u_s_b_1_1_device_impl-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">LibUSB::DeviceImpl Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a115cb08feaa8115ea5460fd1043364d9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a115cb08feaa8115ea5460fd1043364d9"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>DeviceImpl</b> (libusb_device *pDevice)</td></tr>
<tr class="memitem:afa50228d3c4c532fef55e7449a051ea9"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#afa50228d3c4c532fef55e7449a051ea9">~DeviceImpl</a> ()</td></tr>
<tr class="memitem:ac2920f6e16a26937e7a49279101a0e6d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac2920f6e16a26937e7a49279101a0e6d"></a>
std::shared_ptr<br class="typebreak"/>
&lt; libusb_device_descriptor &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#ac2920f6e16a26937e7a49279101a0e6d">getDeviceDescriptor</a> ()</td></tr>
<tr class="memdesc:ac2920f6e16a26937e7a49279101a0e6d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the device descriptor. <br/></td></tr>
<tr class="memitem:a3a445a7a506079244e8dfc77f8e5d226"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a445a7a506079244e8dfc77f8e5d226"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#a3a445a7a506079244e8dfc77f8e5d226">isOpen</a> () const </td></tr>
<tr class="memdesc:a3a445a7a506079244e8dfc77f8e5d226"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns TRUE if the device is open. <br/></td></tr>
<tr class="memitem:a4464680f5742d789c14ecc30ea62edc8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4464680f5742d789c14ecc30ea62edc8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#a4464680f5742d789c14ecc30ea62edc8">Open</a> ()</td></tr>
<tr class="memdesc:a4464680f5742d789c14ecc30ea62edc8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Opens a handle to the usb device. <br/></td></tr>
<tr class="memitem:a8a7e52a87e4e31e897c76e2c6252a580"><td class="memItemLeft" align="right" valign="top">uint16_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#a8a7e52a87e4e31e897c76e2c6252a580">getLangId</a> ()</td></tr>
<tr class="memdesc:a8a7e52a87e4e31e897c76e2c6252a580"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the language id.  <a href="#a8a7e52a87e4e31e897c76e2c6252a580"></a><br/></td></tr>
<tr class="memitem:a24069e81e1ea172365da7623e1a6fa43"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a24069e81e1ea172365da7623e1a6fa43"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#a24069e81e1ea172365da7623e1a6fa43">getStringDescriptor</a> (uint8_t index)</td></tr>
<tr class="memdesc:a24069e81e1ea172365da7623e1a6fa43"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains the given ascii descriptor string. <br/></td></tr>
<tr class="memitem:ac068f020ebc2ca18d0ba71b1614bbfef"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac068f020ebc2ca18d0ba71b1614bbfef"></a>
std::wstring&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#ac068f020ebc2ca18d0ba71b1614bbfef">getStringDescriptorW</a> (uint8_t index)</td></tr>
<tr class="memdesc:ac068f020ebc2ca18d0ba71b1614bbfef"><td class="mdescLeft">&#160;</td><td class="mdescRight">Obtains a unicode descriptor string. <br/></td></tr>
<tr class="memitem:af111e332381a0c1483dde061f6d1c7b9"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af111e332381a0c1483dde061f6d1c7b9"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#af111e332381a0c1483dde061f6d1c7b9">getActiveConfiguration</a> (uint8_t &amp;index) const </td></tr>
<tr class="memdesc:af111e332381a0c1483dde061f6d1c7b9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the index of the active configuration. <br/></td></tr>
<tr class="memitem:abeec3c40a76f6faefb2056be8dc8035b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="abeec3c40a76f6faefb2056be8dc8035b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#abeec3c40a76f6faefb2056be8dc8035b">setActiveConfiguration</a> (uint8_t index)</td></tr>
<tr class="memdesc:abeec3c40a76f6faefb2056be8dc8035b"><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the active configuration. <br/></td></tr>
<tr class="memitem:aab2f41857ad040c218e845c8ad08d420"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aab2f41857ad040c218e845c8ad08d420"></a>
std::shared_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_configuration.html">Configuration</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#aab2f41857ad040c218e845c8ad08d420">getConfiguration</a> (uint8_t ConfigValue)</td></tr>
<tr class="memdesc:aab2f41857ad040c218e845c8ad08d420"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the requested the configuration descriptor. <br/></td></tr>
<tr class="memitem:a0968082ea56c3f4e393f75255a6ee463"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a0968082ea56c3f4e393f75255a6ee463"></a>
std::weak_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_device.html">Device</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#a0968082ea56c3f4e393f75255a6ee463">getDevice</a> () const </td></tr>
<tr class="memdesc:a0968082ea56c3f4e393f75255a6ee463"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the LibUSB++ device object/owner. <br/></td></tr>
<tr class="memitem:a1dfb67b1c9f691beb15d0f0f7c19b8a5"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a1dfb67b1c9f691beb15d0f0f7c19b8a5"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#a1dfb67b1c9f691beb15d0f0f7c19b8a5">setParentDevice</a> (std::weak_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_device.html">Device</a> &gt; pParentDevice)</td></tr>
<tr class="memdesc:a1dfb67b1c9f691beb15d0f0f7c19b8a5"><td class="mdescLeft">&#160;</td><td class="mdescRight">Allows device to set the parent device after initial construction. <br/></td></tr>
<tr class="memitem:ada72c87f33e85138eb0b4155b46050ac"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ada72c87f33e85138eb0b4155b46050ac"></a>
std::shared_ptr&lt; <a class="el" href="class_lib_u_s_b_1_1_endpoint.html">Endpoint</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#ada72c87f33e85138eb0b4155b46050ac">getControlEndpoint</a> ()</td></tr>
<tr class="memdesc:ada72c87f33e85138eb0b4155b46050ac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns endpoint 0. <br/></td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr class="memitem:afa977f8464bbb6a66e0c524cdd6c6370"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afa977f8464bbb6a66e0c524cdd6c6370"></a>
std::shared_ptr&lt; libusb_device &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#afa977f8464bbb6a66e0c524cdd6c6370">m_pDevice</a></td></tr>
<tr class="memdesc:afa977f8464bbb6a66e0c524cdd6c6370"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_lib_u_s_b_1_1_device.html" title="Libusb device interface.">Device</a> object. <br/></td></tr>
<tr class="memitem:ab0cee10d5b15c539f88998c22245cd05"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab0cee10d5b15c539f88998c22245cd05"></a>
std::shared_ptr<br class="typebreak"/>
&lt; libusb_device_handle &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html#ab0cee10d5b15c539f88998c22245cd05">m_pHandle</a></td></tr>
<tr class="memdesc:ab0cee10d5b15c539f88998c22245cd05"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="class_lib_u_s_b_1_1_device.html" title="Libusb device interface.">Device</a> handle. <br/></td></tr>
</table>
<h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afa50228d3c4c532fef55e7449a051ea9"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">LibUSB::DeviceImpl::~DeviceImpl </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<dl class="todo"><dt><b><a class="el" href="todo.html#_todo000001">Todo:</a></b></dt><dd>Release all claimed interfaces here. </dd></dl>

</div>
</div>
<h2>Member Function Documentation</h2>
<a class="anchor" id="a8a7e52a87e4e31e897c76e2c6252a580"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">uint16_t LibUSB::DeviceImpl::getLangId </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Obtains the language id. </p>
<dl class="section note"><dt>Note</dt><dd>This descriptor is described here: <a href="http://www.beyondlogic.org/usbnutshell/usb5.shtml">http://www.beyondlogic.org/usbnutshell/usb5.shtml</a> </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>src/<a class="el" href="deviceimpl_8h_source.html">deviceimpl.h</a></li>
<li>src/deviceimpl.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>LibUSB</b></li><li class="navelem"><a class="el" href="class_lib_u_s_b_1_1_device_impl.html">DeviceImpl</a></li>
    <li class="footer">Generated on Sat Sep 8 2012 08:35:03 for Libusb++ by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.1.2 </li>
  </ul>
</div>
</body>
</html>
